<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>具名插槽</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="app">
    <base-layout>
      <template v-slot:header>
        <h1>Here might be a page title</h1>
      </template>
      
      <template #footer>
        <p>Here's some contact info</p>
      </template>

      <template #body="{content}">
        <p>A paragraph for the {{content}}.</p>
        <p>And another one.</p>
      </template>

      <template #default="{nums: {x, y}}">
        <div>{{aside}} {{x + y}}</div>
        <!-- <pre>
          {{props}}
        </pre> -->
      </template>
    </base-layout>
  </div>
  <script type="module">
    import './base-layout.js'
    new Vue({
      el: '#app',
      data: {
        aside: 'aside content',
      },
      mounted() {
        // const obj = {
        //   // x: 100,
        //   y: {
        //     z: 200
        //   }
        // }
        // const { x, y } = obj
        // console.log(x, y)
        // const { x: xxx } = obj
        // console.log(xxx)
        // const { y: { z } } = obj
        // console.log(z)
        // const { x = 300 } = obj
        // console.log(x)
      },
    })
  </script>
</body>
</html>